package com.atguigu03._throws;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * ClassName: OverrideTest
 * Package: com.atguigu03._throws
 * Description:
 *
 * @Author ZY
 * @Create 21:53
 * @Version 1.0
 */
public class OverrideTest {
    public static void main(String[] args) {

        Father f = new Son();

        try{
            f.method1();
        }catch (IOException e){
            e.printStackTrace();
        }

    }

}

class Father{

    public void method1() throws IOException {

    }

}


class Son extends Father{

    public void method1() throws FileNotFoundException {

    }

}